From 0dbd9dc0a79f4c48f04213d5cf46b1baa215ad7f Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 9 Jul 2013 10:04:12 +0100 Subject: [PATCH] wayland: request appropriate compositor version to support buffer scale With the introduction of the use of buffer scaling in ed4fcee4ct we must request version 3 of the compositor as that is the version of the surface interface that adds this new functionality. See the following commit in weston: commit a85118c1b85df6fbf8f896dca971a5b79a94da71 Author: Jason Ekstrand Date: Thu Jun 27 20:17:02 2013 -0500 Use wl_resource_create() for creating resources This commit sets the version numbers for all added/created objects. The wl_compositor.create_surface implementation was altered to create a surface with the same version as the underlying wl_compositor. Since no other "child interfaces" have version greater than 1, they were all hard-coded to version 1. Signed-off-by: Jason Ekstrand https://bugzilla.gnome.org/show_bug.cgi?id=703817 --- gdk/wayland/gdkdisplay-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index 89504e8441..cf3d812779 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -156,7 +156,7 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id if (strcmp(interface, "wl_compositor") == 0) { display_wayland->compositor = - wl_registry_bind(display_wayland->wl_registry, id, &wl_compositor_interface, 1); + wl_registry_bind(display_wayland->wl_registry, id, &wl_compositor_interface, 3); } else if (strcmp(interface, "wl_shm") == 0) { display_wayland->shm = wl_registry_bind(display_wayland->wl_registry, id, &wl_shm_interface, 1); -- 2.30.2